package com.punai.config.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.punai.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;

@TableName("config_materialinfo")
public class ConfigMaterialInfo extends BaseEntity{
    private String id;
    private String categoryId;

    /**
     * 所属分类的地区Id
     */
    private String addressId;

    /**
     * 编码
     */
    private String code;
    /**
     * 名称
     */
    private String name;
    /**
     * 规格型号
     */
    private String spec;
    /**
     * 单位
     */
    private String unit;

    /**
     * 类型 zf_0：政府指导价  gl_1:工料机询价
     */
    private String type;

    /**
     * 数据状态  0：为正常，1：为已删除
     */
    private String dataStatus = "0";


    private Integer orderNum;
    /**
     * $column.columnComment
     */
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;

    /**
     * $column.columnComment
     */
    @TableField(fill = FieldFill.INSERT)
    private Long userId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDataStatus() {
        return dataStatus;
    }

    public void setDataStatus(String dataStatus) {
        this.dataStatus = dataStatus;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getAddressId() {
        return addressId;
    }

    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("id", id)
                .append("categoryId", categoryId)
                .append("addressId", addressId)
                .append("code", code)
                .append("name", name)
                .append("spec", spec)
                .append("unit", unit)
                .append("type", type)
                .append("dataStatus", dataStatus)
                .append("orderNum", orderNum)
                .append("deptId", deptId)
                .append("userId", userId)
                .toString();
    }
}
